﻿using B.S.XZYData.Domain.BaseEntities;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.XZYData.Domain.RBAC
{
    /// <summary>
    /// 角色实体Model
    /// </summary>
    [SugarTable("RoleModel")]
    public class RoleModel : BaseEntity
    {
        /// <summary>
        /// 角色名称
        /// </summary>
        [SugarColumn(ColumnName = "RoleName", Length = 100, IsNullable = false)]
        public string RoleName { get; set; } = string.Empty;
        
        /// <summary>
        /// 是否启用(true(启用)\false(禁用))
        /// </summary>
        [SugarColumn(ColumnName = "IsState", IsNullable = false)]
        public bool IsState { get; set; } = true;
        
        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "CreateTime", IsNullable = false)]
        public DateTime CreateTime { get; set; } = DateTime.Now;
    }
}
